package com.r2coding.server.modules.file.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.r2coding.web.serializer.IdEncryptSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 功能描述
 * @Create on : 2023/10/11 12:28
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class UserFileVo implements Serializable {

    private static final long serialVersionUID = 617553965711272546L;

    @JsonSerialize(using = IdEncryptSerializer.class)
    private Long fileId;

    @JsonSerialize(using = IdEncryptSerializer.class)
    private Long parentId;

    private String filename;

    private String fileSizeDesc;

    private Integer folderFlag;

    private Integer fileType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date updateTime;
}
